<form id="form_baixar" action="<?php echo url_for('lancamento/baixarLancamento'); ?>" method="post">
    <?php if (!$form->getObject()->isNew()): ?>
        <input type="hidden" name="sf_method" value="put" />
        <input type="hidden" name="id_lancamento" value="<?php echo $form->getObject()->getIdLancamento() ?>" />
    <?php endif; ?>
    <?php echo $form->renderHiddenFields() ?>
    <table class="form">
    	<tbody>
		    <?php echo $form->renderGlobalErrors() ?>
		    <tr>
				<th><?php echo $form['valor']->renderLabel() ?></th>
				<td>
				    <?php echo $form['valor'] ?>
				    <?php echo form_error('lancamento[valor]'); ?>
				</td>
		    </tr>
		    <tr>
				<th><?php echo $form['data_pagamento']->renderLabel() ?></th>
				<td>
				    <?php echo $form['data_pagamento'] ?>
				    <?php echo form_error('lancamento[data_pagamento]'); ?>
				</td>
		    </tr>
		    <tr>
		    	<tr>
				<th><?php echo $form['desconto']->renderLabel() ?></th>
				<td>
				    <?php echo $form['desconto'] ?>
				    <?php echo form_error('lancamento[desconto]'); ?>
				</td>
		    </tr>
		    <tr>
		    	<tr>
				<th><?php echo $form['juros']->renderLabel() ?></th>
				<td>
				    <?php echo $form['juros'] ?>
				    <?php echo form_error('lancamento[juros]'); ?>
				</td>
		    </tr>
		</tbody>
    </table>
</form>

<script type="text/javascript">
$(document).ready(function(){
    System.bodydata.calendar('.datepicker');
});
</script>